# myapp/urls.py
from django.urls import path
from .views import PersonInfoListView, PersonInfoDetailView,PersonInfoCreateView, PersonInfoUpdateView, PersonInfoDeleteView,PersonInfoMonthArchiveView,PersonInfoWeekArchiveView

urlpatterns = [
    path('', PersonInfoListView.as_view(), name='personinfo_list'),
    path('person/<int:pk>/', PersonInfoDetailView.as_view(), name='personinfo_detail'),
    path('person/add/', PersonInfoCreateView.as_view(), name='personinfo_add'),
    path('person/edit/<int:pk>/', PersonInfoUpdateView.as_view(), name='personinfo_edit'),
    path('person/delete/<int:pk>/', PersonInfoDeleteView.as_view(), name='personinfo_delete'),
    path('person/archive/month/<int:year>/<int:month>/', PersonInfoMonthArchiveView.as_view(),name='personinfo_archive_month'),
    path('person/archive/week/<int:year>/<int:week>/', PersonInfoWeekArchiveView.as_view(),name='personinfo_archive_week'),
]
